<!--header str-->
{template "common","header"}
<!--header end-->
<script type="text/javascript">
<!--
$(document).ready(function(){  
	$('#commit_comment').click(function(){
		var comment = $('#comment_content').val()
		var c_id = '{$info[id]}'
		$.ajax({ 
	        type: "GET", 
	        url: "/index.php?m=hchindex&c=ajax&a=takecomment&type=2&comment="+comment+"&id="+c_id,
	        success: function(){
	        	alert('评论成功');
	        	window.location.reload()
	        }  
		  }); 
		
	})
})
function tozan(obj,id,zannum){
	$.ajax({ 
	       type: "GET", 
	       url: "/index.php?m=hchindex&c=ajax&a=zan&id="+id,
	       success: function(){
	    	   window.location.reload()
	       }  
	}); 
		
}

//-->
</script>
<!--wrap_activity str-->
<div class="wrap" id="wrap">
	<table>
		<tr>
			<td class="item_table_left">
				{template "common","left_menu"}
			</td>
			<td class="item_table_right">
				<div class="wrap_main">
					{template "common","bullet_info"}
					<hr>
					<div class="content_title">{$info[title]}</div>
					<video src="{$info[video]}" width="500" controls autobuffer></video>
					<table class="video_tab">
						<tr>
							<td class="loadshow_title_bar"><div class="loadshow_title_div">{$info[name]}</div></td>
							<td class="loadshow_title_bar2" width="78" >简介</td>
						</tr>
						<tr>
							<td colspan="2" class="loadshow_title_bar3">{$info[short_content]}</td>
						</tr>
						<tr>
							<td colspan="2" class="comment">
								<table width="100%" >
									<tr>
										<td>
											<div class="comment_title">
												<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 发表评论</label>
											</div>
											<div class="comment_content">
												{if $this->isLogin}
												<div><textarea rows="5" cols="80" name="comment_content" id="comment_content"></textarea></div>
												{else}
												<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <label><a href="/index.php?m=hchmember&c=index&a=login" >请先登录</a></label>
												{/if}
											</div>
											<div class="commit_submit">
												<input type="button" name="submit" id="commit_comment" value="提交评论" >
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div id="pages"><?php echo $pages ?></div>
											<div class="comment_list">
												<hr/>
												{loop $commentLists $comment}
												<table width="100%">
													<tr>
														<td rowspan="3">
															<img alt="" src="{$comment[img]}" width="70">
														</td>
														<td class="content_username">
															<label class="username">{$comment[username]}&nbsp;&nbsp;</label>
															<label class="update_time">{$comment[last_updated_time]}</label>
														</td>
													</tr>
													<tr>
														<td class="content_username">
															{$comment[content]}
														</td>
													</tr>
													<tr>
														<td colspan="3" align="right" width="100%" >
														<a href="javascript:void(0)" onclick="tozan(this,{$comment[id]},{$comment[zan_number]})" > 
															<img alt="" src="/statics/images/huachuang/zan.png">
															<label class="username">({$comment[zan_number]})&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
															<!-- |<a href="#" >回复</a> -->
														</a>
														</td>
													</tr>
												</table>
												<hr/>
												{/loop}
											</div>
											<div id="pages"><?php echo $pages ?></div>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</div>
			</td>
		</tr>
	</table>

		
	
</div>
<!--wrap end-->
<!--footer str-->
{template "common","footer"}
<!--footer end-->
</body>
</html>